body {
    font: 14px/1.5 Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
}


    * {
        margin: 0;
        padding: 0;
    }


    /* 这是顶部导航栏+广告 */
    .box {
        height: 120px;

        background-image: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/271a0ad51f0b0760ed9cb46791fb2b31.jpg?w=5120&h=240);
        background-size: auto 120px;
        background-repeat: no-repeat;
        background-position: center center;

    }

    .nav {
        height: 40px;
        background-color: rgb(51, 51, 51);
    }

    .nav-center {
        height: 40px;
        width: 1226px;
        margin: 0 auto;
    }

    ul {
        list-style: none;
    }

    /* .left::after{
        content: "";
        clear: both;
        display: block;
    } */
    .nav .nav-center .left li {
        float: left;
        line-height: 40px;
        color: #b0b0b0;
        font-size: 12px;
    }
    .nav .nav-center .left a{
        color: #b0b0b0;
    }
    .nav .nav-center ul li::after {
        content: "|";
        margin: 0 7px;
        color: #424242;
    }

    .nav .nav-center li:hover {
        color: #fff;
    }

    .nav .nav-center .left li:last-child::after {
        content: "";

    }

    /* .right::after{
        content: "";
        clear: both;
        display: block;
    } */

    /* 导航栏右侧购物车等 
    ---------------
    ------------
    -----------------*/
    .nav .nav-center .right li {
        float: right;
        line-height: 40px;
        color: #b0b0b0;
        font-size: 12px;
    }

    .nav .nav-center .right li:hover {
        color: #fff;
    }

    .nav .nav-center .right li:first-child::after {
        clear: both;
        /* display: inline block; */
    }

    .nav .nav-center .right li:first-child:after {
        content: "";
        background-image: url(../day2/老师/day02/下午/img/购物车.png);
        height: 20px;
        width: 20px;
        background-size: 100%;
        float: left;
        margin-top: 10px;
        margin-left: 10px;
        /* background-position: 7px 0px; */
        /* display: block; */
    }

    .nav .nav-center .right li:first-child:hover::after {
        background-image: url(../day2/老师/day02/下午/img/购物车hover.png);
    }

    .nav .nav-center .right li:first-child:hover {
        background-color: white;
        color: #ff6700;

        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: 10px;

    }
/* ------------
    ---------
    ----------这是购物车栏目下弹窗口 */
    .nav .nav-center .right li:first-child .cart-box{
        width: 316px;
        height: 0px;
        box-shadow: 0 2px 10px rgba(0,0,0,.15);
        position: absolute;
        right: 146px;
        /* z-index: 9; */
        background-color: white;
        line-height: 100px;
        text-align: center;
        color: black;
        overflow: hidden;
        transition: height 1s;       

    }
    .nav .nav-center .right li:first-child:hover .cart-box{
        height: 99px;
    }

    
/* ------------
    ---------
    ----------这是二维码 */

    .nav .nav-center .left  li.downloadApp{
        position: relative;
        color: black;
    }
    .nav .nav-center .left li.downloadApp .twoCode{
        width: 124px;
        height: 0;
        box-shadow: 0 1px 5px #aaa;
        background-color:white;
        /* border: black 1px solid; */
        position: absolute;
        top: 40px;
        left: 50%;
        margin-left: -55px;
        z-index: 99;
        line-height: normal;
        text-align: center;
        overflow: hidden;
        transition: height 1s;
        color: black;
        
    }
    .nav .nav-center .left li.downloadApp .twoCode img{
        display: block;
        width: 90px;
        height: 90px;
        margin: 18px auto 12px;
    }
    .nav .nav-center .left li.downloadApp:hover .twoCode{
        height: 148px;

    }
    .nav .nav-center .left li:last-child::after,
    .nav .nav-center .right li:last-child::after{
        content: "";
    }
    
    /* 这是左侧选择栏 */

    /* ------------
    ---------
    ---------- */


    ul {
        list-style: none;
    }

    a {
        text-decoration: none;
    }

    #box3 {
        width: 1226px;
        height: 460px;
        margin: 0 auto;
        position: relative;
    }

    #box3 .left-nav {
        width: 234px;
        height: 100%;
        background-color: rgba(105, 101, 101, 0.6);
        position: absolute;
    }

    #box3>.left-nav>ul {
        padding: 20px 0;

    }

    #box3>.left-nav>ul>li>a {
        display: block;
        height: 42px;
        line-height: 42px;
        padding-left: 30px;
        font-size: 14px;
        color: white;
    }

    #box3>.left-nav>ul>li>a::after {
        content: ">";
        width: 16px;
        height: 16px;
        color: white;
        margin-right: 20px;
        /*  clear: left; */
        float: right;
    }

    /* #box3 .left-nav ul li a .icon-img{
       
       span 是行内元素，不能设置宽度和高度
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url("img/arrow_right.png");
        background-size: 100%;
        float:right;    
        margin: 13px 20px 0 0;

    }  */

    #box3 .left-nav>ul>li:hover {
        background-color: #ff6700;
    }

    #box3 .photo>ul>li {
        /* display: block;
        width: 1226px;
        height: 460px;
        background-image: url("img/ty.webp");
        background-size: 100%; */

        /* 自己 */
        display: block;
        width: 1226px;
        height: 460px;
        background-image: url("http://m.qpic.cn/psc?/V12CV7UZ0hzAAX/ruAMsa53pVQWN7FLK88i5v5Jbj8PvVYRfVwMlG3hClgjNX9qtkY4wzRr.eoNb1uhMlg8W6u2IIRrUJmQ87rVoWgQhHbQ.*U.psOb3LlJ8Z8!/b&bo=VQhABgAMAAkBCTA!&rf=viewer_4");
        background-size: 100%;
       
        background-repeat: no-repeat;
        background-position: 3px -158px;
    }

    /* -----------加上> 下面的category */

    #box3>.left-nav>ul>li>.category {
        position: absolute;
        top: 0px;
        left: 234px;
        width: 992px;
        height: 460px;
        background-color: white;
        border: 1px solid #cccccc;

        /* padding: 18px 20px ; */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);


        display: none;
    }

    #box3>.left-nav>ul>li:hover>.category {
        display: block;
    }

    #box3>.left-nav>ul>li>.category ul {
        width: 247px;
        height: 100%;
        float: left;
    }

    #box3>.left-nav>ul>li>.category ul li img {
        float: left;
        margin-right: 12px;

    }

    #box3>.left-nav>ul>li>.category ul li a {
        display: block;
        height: 40px;
        line-height: 40px;
        padding: 18px 20px;
        color: #333;
        font-size: 14px;
    }

    #box3>.left-nav>ul>li>.category ul li:hover a {
        color: #ff6700;
    }

    /* #site-header>.logo-small{
    float: left;
    width: 62px;
    margin-top: 22px;
} */

    /* 加上logo行段 */
    /* ————————
————————
————————
________ */

    #site-header {
        width: 1226px;
        height: 100px;
        margin: 0 auto;
     
    }

    /* #site-header .logo-small{
        
        float: left;
        width: 234px;
        height: 100%;
        border: 1px solid black;

} */
  
    /* #site-header .logo-small a {
        width: 55px;
        height: 55px;
        background-color: #ff6700; */
        /* margin-top: 22.5px; */

        /* overflow: hidden; */

        /* margin-top: 25.5px; */
        
        /* position: absolute; 
    } */


    #site-header .logo-home a {
        width: 110px;
    height: 55px;
   
    margin-left: -53px;
    /* margin-top: 28.5px; */
    /* overflow: hidden; */
    display: block;
    /* position: absolute; */
    transition: all .2s;

    }

    #site-header .logo-home a:hover {
        margin-left: 0;

    }
    /* -------------
    ------------
    ------------
    接下来设计的是logo 旁边的header-nav中间栏 */

#header-nav{
    float: left; 
    width: 678px;
    height: 100%;

    /* border: black 1px solid;  */
    display: block;
}
#header-nav ul li{
    float: left;
 
    line-height: 100px;

}
#header-nav ul li a{
    font-size: 16px;
    padding: 0 10px;
    color: black;

}
#header-nav ul li a:hover{
    color: #ff6700;
}




/*  接下来设计的是logo 旁边的header-nav中间栏 商品栏目轮播图
下滑的框框*/
#header-nav ul li .children-list{
    width: 100%;
    height: 0;
    background-color: white;
    border: black 1px solid;
    border-top: 0 solid #cccccc;
    border-bottom: 0 solid #cccccc;
    position: absolute;
    left: 0;
    z-index: 99;
    overflow: hidden;
    transition: all 1s;

}
#header-nav ul li:hover .children-list{
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    height: 229px;

}
#header-nav ul li .children-list .children-list-auto{
    width: 1226px;
    height: 100%;
    
    margin: 0 auto;
}
#header-nav ul li .children-list .children-list-auto ul li{
    line-height: normal;
    text-align: center;
    position: relative;
    margin:30px 5px;
    /* width: 160px;
    height: 110px;
    margin: 0 auto 16px;
    text-align: center; */
}

/* 这是加下拉商品栏目图片中间的那一竖 ，就是用after加*/
#header-nav ul li .children-list .children-list-auto ul li::after{
    content: "";
    background-color: #e0e0e0;
    width: 1px;
    height: 100px;
    position: absolute;
    top: 35px;
    right: 0;
}








/* 接下来是设置顶部右边搜索栏 */
#site-header .search-bar{
        float: right;
        margin-top: 25px;
}
#site-header .search-bar input.search{
        width: 223px;
        height: 48px;
        font-size: 16px;    
        padding: 0 10px;
        border: 1px solid #e0e0e0;
        
        /* 轮廓 */
        outline: none;
}
#site-header .search-bar a input[type="submit"]{
        width: 52px;
        height: 50px;
        padding: 0 6px;
        float: right;
        background-color: #fff;
        border: 1px solid #e0e0e0;
        background-image: url(img/search.png);
        background-size: 50%;
        background-repeat: no-repeat;
        background-position: center;
        outline: none;
        border-left: none;
    
}
#site-header .search-bar a input[type="submit"]:hover{
    background-color: #ff6700;
    background-image: url(img/searchHover.png);
    border: none;

}

#site-header .search-bar input.search:focus,
#site-header .search-bar input.search:focus+a input
{   border-color: #ff6700;
}
/*  搜索栏下点提示*/
#site-header .search-bar .search-Box{
     width: 223px;
    height: auto;
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid #ff6700;
    background-color: white;
    outline: none; 
    display: none;
  
    position: relative;
    z-index: 99; 
 
    /* width: calc(100% - 52px - 2px);
    display: none;
    position: relative;
    z-index: 99;
    border: 1px solid #ff6700;
    border-top: 0;
    background-color: white; */
}
#site-header .search-bar input.search:focus~.search-Box{
    display: block;
}
#site-header .search-bar li a{
    display: block;
    color: #424242 ;
    font-size: 12px;
    height: 30px;
    padding: 6px 15px;
    line-height: 30px;
}







/* 这次是第四个框架的一个图 */
#box4{
    position: relative;
    width: 1226px;
    height: 170px;  
    
    margin: 15px auto;


}
#box4 .left{
    /* 
    */
    width: 234px;
    height: 170px;
    background-color: #5f5750;
    float: left;
}
#box4 .left ul{
    /* padding: 3px; */

}
#box4 .left li{

    /*  */ 
    float: left;
    padding: 0px 3px;
    margin: 4px 1px;
    width: 70px;
    height: 82px;
    text-align: center;
    
    opacity: 0.7;
    font-size: 12px;
    position: relative;
    transition: opacity .5s;
}
#box4 .left li a{
    display: block;
    color: #fff;
}
#box4 .left li a img{
    width: 24px;
    height: 24px;
    padding-top: 18px;

}
#box4 .left li::after,
#box4 .left li::before{
    content: "";
    /* display: block; */
    width: 1px;
    height: 70px;
    background-color:  #665e57;
    background-color: #665e57;
    position: absolute;
    top: 6px;
    left: 0;
}

#box4 .left li::before{
    content: "";
    width:64px ;
    height: 1px;
    top: -1px;
    left: 6px;

}
#box4 .left li:hover{
    opacity: 1;
}
#box4 .right {
    float: left;
    margin-left: 14px;
    font-size: 0;

}
#box4 .right img{
    width: 316px;
    height: 170px;

}
#box4 .right a{
    display: inline-block;
    transition: all .5s;

}
#box4 .right a:hover{
    box-shadow:  0 15px 30px rgba(0,0,0,.3);
}

/* :not(css选择器)  除了第一个img标签的其他所有标签应用上样式*/
#box4 .right a:not(:first-child){
    margin-left: 15px;

}

/* ------------
-------------------
-------接下来是定义下面栏的灰色背景 */
.gray{
    background-color: #f5f5f5;
    
    /* background-color: red; */
    
    padding-top: 4px;
    padding-bottom: 12px;
    /* width: 1519.200px; */
    height: 6019px;
    margin: 15px auto;
    position: relative;
}
/* ------------
-------------------
-------接下来是小米闪购box5 */
.gray #box5{
    /* margin-bottom: 22px;
    position: relative
    
    margin-left: -14px; */
    position: relative;
    width: 1226px;
    height: 299px;
    margin: 0px auto;

    /* background-color: blue; */
}
.gray #box5 .box-hd{
    position: relative;
    height: 58px;
}
.gray #box5 .box-hd h2.title {
    text-align: left;
    display: inline-block;
    font-size:22px;
    line-height: 58px;
    font-weight: 200;
    color: #333;
}
.gray #box5 .box-hd .titleBtn{
    float: right;
    margin-top: 24px;
    font-size: 0;
  
}
.gray #box5 .box-hd .titleBtn .left,
.gray #box5 .box-hd .titleBtn .right{
    width: 36px;
    height: 24px;
    text-align: center;
    border: 1px solid #e0e0e0;
    outline: none;
    color: #b0b0b0;
    transition: box-shadow .8s;
}
.gray #box5 .box-hd .titleBtn .left:hover,
.gray #box5 .box-hd .titleBtn .right:hover{
    color:#ff6700;
    box-shadow:  0 15px 30px rgba(243, 20, 20, 0.1);
    border: 1px solid #ff6700;
}
/* 左侧：倒计时 */
.gray #box5 .container {
    border-top-color: #e53935;

}
.gray #box5 .container .left-clock{
    width: 234px;
    height: 300px;
    padding-top: 39px;
     border-top: 1px solid #e53935;
    background: #f1eded;
    text-align: center;
    float: left;
}
.gray #box5 .container .left-clock .time-title{
    font-size: 21px;
    color: #ef3a3b;
    padding-top: 15px;
}
.gray #box5 .container .left-clock img{
    margin: 25px 0;
}
.gray #box5 .container .left-clock p{
    color: rgba(0,0,0,.54);
    font-size: 15px;
}
.gray #box5 .container .left-clock>div {
    margin-top:28px;
    font-size: 0;
}
.gray #box5 .container .left-clock>div strong{
    /* width: 168px;
    margin: 28px auto 0; */
    display: inline-block;
    width: 15px;
    font-size: 28px;
    font-weight: 400;
    color: #605751;
   

} 
.gray #box5 .container .left-clock>div span{
    /* span 是行内元素 不能设置宽度和高度 */
    display: inline-block;

    width: 46px;
    height: 46px;
    background: #605751;
    color: #fff;
    font-size: 24px;
    line-height: 46px;
    
}

/* 右侧：轮播图 */
.gray #box5 .container .right{
    float: left;
}
.gray #box5 .container .right ul li{
    float: left;
    width: 234px;
    height: 300px;
    padding-top: 39px;
    border-top: 1px solid  #ffac13;
    background: white;
    text-align: center;
    margin-left: 14px;
    
}
.gray #box5 .container .right ul li span{

    margin: 0;
    color: #ff6709;
}
.gray #box5 .container .right ul li del{
    margin-left: 3.5px;
    color: #b0b0b0;
}
.gray #box5 .container .right ul li p{
    font-size: 12px;
    margin-bottom: 12px;
    color: #b0b0b0;
}
.gray #box5 .container .right ul li h3{
    margin: 0 20px 3px;
    font-size: 14px;
    font-weight: 400;
    text-overflow: ellipsis;
    color: #212121;
    overflow: hidden;
    white-space: nowrap
}


/* box5下方的广告图 */
#box5 .photo img{
    height: 120px;
    margin: 22px 0;
    overflow: hidden
    
}